// 成长档案
import { axios } from '@/utils/request'
export function growthList(params) {
    return axios({
        url: '/school/growth-archives',
        method: 'post',
        data: params
    })
}

export function addGrowth(params) {
    return axios({
        url: '/school/growth-archives/create',
        method: 'post',
        data: params
    })
}

export function getGrowth(params,id) {
    return axios({
        url: '/school/growth-archives/'+id+'/stu-show',
        method: 'post',
        data:params
    })
}
export function growthArchives(id) {
    return axios({
        url: '/school/growth-archives/'+id,
        method: 'post',
        
    })
}

export function deleteComment(id) {
    return axios({
        url: 'school/growth-archives/'+id+'/delete-comment',
        method: 'post',
        
    })
}
export function delGrowth(id) {
    return axios({
        url: '/school/growth-archives/'+id+'/delete',
        method: 'post',
    })
}
export function addComment(params) {
    return axios({
        url: '/school/growth-archives/comment',
        method: 'post',
        data:params
    })
}


// 成长档案类型
export function growthTypeList(params) {
    return axios({
        url: '/school/growth-archive-sorts',
        method: 'post',
        data: params
    })
}
export function addGrowthType(params) {
    return axios({
        url: '/school/growth-archive-sorts/batch-add',
        method: 'post',
        data: params
    })
}
export function changeGrowthTypes(params, id) {
    return axios({
        url: '/school/growth-archive-sorts/' + id + '/enable-status',
        method: 'post',
        data: params
    })
}

export function delGrowthType(params) {
    return axios({
        url: '/school/growth-archive-sorts/batch-delete',
        method: 'post',
        data: params
    })
}
export function changeGrowthT(params, id) {
    return axios({
        url: '/school/growth-archive-sorts/' + id + '/update',
        method: 'post',
        data: params
    })
}

